<template>
    <WebHeader />
    <div class="sqcontent contentwidth">
        <div class="title align-middle">
            <div class="block"></div>
            <div class="text">工程应用信息</div>
        </div>
        <div class="tabs-main">
            <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
                <el-tab-pane name="first">
                    <template #label>
                        <span class="tabs-label">
                            工程应用信息
                        </span>
                    </template>
                    <TableTemplate></TableTemplate>
                </el-tab-pane>
            </el-tabs>
        </div>
        <div class="floatTag" @click="goAdd">
            <img src="@/assets/imgs/tianbao.png" alt="">
            <span class="right-text">工程应用信息填报</span>
        </div>
    </div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import type { TabsPaneContext } from 'element-plus'
import TableTemplate from './components/table.vue'
import WebHeader from '@/components/header/index.vue'

const activeName = ref('first')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event)
}
const goAdd=()=>{
    window.open('https://ciac.zjw.sh.gov.cn/CIACuserportal/SSO/Login.aspx','_blank')
}
</script>
<style lang="scss" scoped>
.sqcontent {
    margin: 20px auto 80px;
    border: 1px solid #e9eaec;
    border-color: #e9eaec;
    border-radius: 4px;
    padding: 16px;
    box-sizing: border-box;
    position: relative;
}

.title {
    display: flex;
    color: #0073d4;
    height: 55px;
    background-color: #f9f9f9;

    .text {
        font-size: 18px;
        font-weight: 600;
        margin-left: 1.45rem;
    }

    .block {
        width: 2px;
        height: 20px;
        margin: 18px 0;
        background-color: #0073d4;
    }
}

.tabs-main {
    .tabs-label {
        display: flex;
        text-align: center;
        align-items: center;
        font-size: 18px;
        // color:#409eff;
    }
}

.floatTag {
    position: absolute;
    right: -100px;
    top: 25%;
    cursor: pointer;
}

.right-text {
    display: block;
    width: 80px;
    height: 14px;
    font-size: 10px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #969696;
    line-height: 14px;
}
</style>